<script>
export default {
  name: "SingleSelect",
  props: {
    houDelVO: Object,
    configItem: Object,
  },
  methods: {},
  render() {
    const { houDelVO, configItem } = this
    const childs = configItem.options.map((item, i) => {
      return (
        <el-option label={configItem.format ? configItem.format(item) : item} key={i} value={item}>
        </el-option>
      );
    });

    return <el-select v-model={houDelVO[configItem.key]} placeholder="请选择">{childs}</el-select>;
  },
};
</script>
<style></style>
